package com.xindacloud.sms.portal.exception;

public class ServiceException extends RuntimeException {

    int errorCode;
    String message;

    public ServiceException() {
        super("");
        this.errorCode = 0;
    }

    public ServiceException(String message, int errorCode) {
        super(message);
        this.errorCode = errorCode;
        this.message = message;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
